package cn.stylefeng.overall.modular.config.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 区域表
 * </p>
 *
 * @author gaolh
 * @since 2019-04-26
 */
@TableName("standard_area")
public class StandardArea extends Model<StandardArea> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.UUID)
    private String id;
    /**
     * 父级OID
     */
    @TableField("PARENT_ID")
    private String parentId;
    /**
     * 编码
     */
    @TableField("CODE")
    private String code;
    /**
     * 区域名称
     */
    @TableField("NAME")
    private String name;
    /**
     * 区域主键路径
     */
    @TableField("PATH")
    private String path;
    /**
     * 排序号 : 默认0
     */
    @TableField("SORT_NUMBER")
    private Integer sortNumber;
    /**
     * 备注
     */
    @TableField("DESCRIPTION")
    private String description;
    /**
     * 删除状态 : N-未删除、Y-已删除，默认N
     */
    @TableField("IS_DELETE")
    private String isDelete;
    /**
     * 创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getSortNumber() {
        return sortNumber;
    }

    public void setSortNumber(Integer sortNumber) {
        this.sortNumber = sortNumber;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StandardArea{" +
        ", id=" + id +
        ", parentId=" + parentId +
        ", code=" + code +
        ", name=" + name +
        ", path=" + path +
        ", sortNumber=" + sortNumber +
        ", description=" + description +
        ", isDelete=" + isDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
